The Batch Processor can be used to generate test cases, that can be attached to a rulebase project. The input data can be from either .csv files or from a database and can be used to generate an individual test case.
Before you start, unzip the InsuranceFraudScore rulebase project that is found at:
examples\rulebases\source\InsuranceFraudScore.zip
Double-click on the batch_test_cases.tsc test file to open the test cases; you may be prompted to recompile the project before the test cases file is opened.
You should see 10 test cases that have been created from the ten records in the csv files when the batch processor was run.
Once the test cases have been imported into Policy Modeling you can add outcomes and expected values for each case; this will allow you to use the test cases to check the future impact of any rule changes.
For more information on using test cases, see the Oracle Policy Modeling Help topic Create test scripts from existing data.
The configuration file used to generate the test cases for this example is almost identical to the configuration file used for the basic InsuranceFraudScore example. The only difference is the change of output from csv to test cases which is done by changing a single line.
The following line, specifies the output as test cases which will be written to the batch_test_cases.tsc file:
<output type="exporttsc">batch_test_cases.tsc</output>